import random
import string
from celery import shared_task
@shared_task(bind=True,soft_time_limit=10,name="emailcode")
def generate_verification_code(self):
    characters = string.ascii_letters + string.digits
    verification_code = ''.join(random.choice(characters) for _ in range(5))
    return verification_code
